from conf import setting
import logging
import os
import time
from logging.handlers import RotatingFileHandler  # 按照文件大小进行备份
import datetime

log_path = setting.FILE_PATH["LOG"]
if not os.path.exists(log_path):
    os.mkdir(log_path)


logfile_name = log_path + r"\test.{}.log".format(time.strftime(""))